﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Браузер
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
        }
        private void url()
        {
             String url = textBox1.Text;
            if (!url.Contains("http://"))
                    url = "http://" + url;
            textBox1.Text = url;
            webBrowser1.Navigate(url);

        }

        private void go_Click(object sender, EventArgs e)
        {
            url();
        }

        private void GoBack_Click(object sender, EventArgs e)
        {
            
            webBrowser1.GoBack();
        }

        private void GoForward_Click(object sender, EventArgs e)
        {
            webBrowser1.GoForward();
        }

        private void Refresh_Click(object sender, EventArgs e)
        {
            webBrowser1.Refresh();
        }
    }
}
